package cn.aresoft.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


@Entity
@Table(name="activity_user_tbl")
public class ActivityUser implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private int id;
	private int activityId;
	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="userId",insertable=true,updatable=false)
	private BasicUserInfo basicUserInfo;
	private int isHuiYuan;
	private Date createDate;
	private int signIn;
	private Date ruhui;			//成为会员时间
	private String principal;	//报名人员的店长
	/**
	 * @return the principal
	 */
	public String getPrincipal() {
		return principal;
	}
	/**
	 * @param principal the principal to set
	 */
	public void setPrincipal(String principal) {
		this.principal = principal;
	}
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return the activityId
	 */
	public int getActivityId() {
		return activityId;
	}
	/**
	 * @param activityId the activityId to set
	 */
	public void setActivityId(int activityId) {
		this.activityId = activityId;
	}
	/**
	 * @return the isHuiYuan
	 */
	public int getIsHuiYuan() {
		return isHuiYuan;
	}
	/**
	 * @param isHuiYuan the isHuiYuan to set
	 */
	public void setIsHuiYuan(int isHuiYuan) {
		this.isHuiYuan = isHuiYuan;
	}
	/**
	 * @return the createDate
	 */
	public Date getCreateDate() {
		return createDate;
	}
	/**
	 * @param createDate the createDate to set
	 */
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	/**
	 * @return the signIn
	 */
	public int getSignIn() {
		return signIn;
	}
	/**
	 * @param signIn the signIn to set
	 */
	public void setSignIn(int signIn) {
		this.signIn = signIn;
	}
	/**
	 * @return the basicUserInfo
	 */
	public BasicUserInfo getBasicUserInfo() {
		return basicUserInfo;
	}
	/**
	 * @param basicUserInfo the basicUserInfo to set
	 */
	public void setBasicUserInfo(BasicUserInfo basicUserInfo) {
		this.basicUserInfo = basicUserInfo;
	}
	/**
	 * @return the ruhui
	 */
	public Date getRuhui() {
		return ruhui;
	}
	/**
	 * @param ruhui the ruhui to set
	 */
	public void setRuhui(Date ruhui) {
		this.ruhui = ruhui;
	}

	
	

}
